<?php
/**
 * Created by PhpStorm.
 * User: longyu
 * Date: 2016/6/2
 * Time: 16:37
 */
require "redis.php";
$username=$_POST["username"];
$password=$_POST["password"];
$age=$_POST["age"];
$uid=$_POST["uid"];
$redis->hMset("user:{$uid}",array("uid"=>$uid,"username"=>$username,"password"=>md5($password) ,"age"=>$age));
header("Location:list.php");